package com.lottery.ruok.lottrey.ui.component;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;

import com.lottery.ruok.lottrey.R;

/**
 * 第三方支付订单信息
 */
public class ThreePayInfoView extends BaseRelativeLayout {

    private BankInfoItemView mMoneyView;
    private BankInfoItemView mOrderNumView;

    public ThreePayInfoView(Context context) {
        super(context);
    }

    public ThreePayInfoView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public ThreePayInfoView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void init(Context context, AttributeSet attrs, int defStyleAttr) {

    }

    @Override
    protected void initView(Context context) {
        LayoutInflater.from(context).inflate(R.layout.view_three_pay_info, this);
        mMoneyView = findViewById(R.id.view_money);
        mOrderNumView = findViewById(R.id.view_order_num);
    }

    @Override
    protected void load(Context context) {

    }


    public void setMoney(String money) {
        mMoneyView.setData("充值金额:", money);
    }

    public void setOrderNum(String orderNum) {
        mOrderNumView.setData("订单编号:", orderNum);
    }
}
